<template>
  <div class="recommend">
    <div class="recommend-item" v-for="item in recommends">
      <a :href="item.link">
        <img :src="item.image" alt="">
        <span>{{item.title}}</span>
      </a>
    </div>
  </div>
</template>

<script>
  export default {
    name: "RecommendView",
    props: {
      recommends: {
        type: Array,
        required: true
      }
    }
  }
</script>

<style scoped>
  .recommend {
    display: flex;
    margin-top: 20px;
    font-size: 16px;
    padding-bottom: 18px;
    border-bottom: 10px solid rgb(235, 231, 231);
  }

  .recommend-item {
    flex: 1;
    text-align: center;

  }

  .recommend img {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;

  }
</style>
